package com.lifesting.java2as3.analysis;

import org.eclipse.jdt.internal.ui.search.AbstractJavaSearchResult;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.search.ui.ISearchQuery;
import org.eclipse.search.ui.ISearchResult;
import org.eclipse.search.ui.text.IEditorMatchAdapter;
import org.eclipse.search.ui.text.IFileMatchAdapter;

import com.lifesting.java2as3.Activator;

public class OuterClassSearchResult extends AbstractJavaSearchResult implements
		ISearchResult , IFileMatchAdapter, IEditorMatchAdapter{
	private OuterClassesQuery query;
	
	public OuterClassSearchResult(OuterClassesQuery outerClassesQuery) {
		this.query = outerClassesQuery;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		return Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/sample.gif");
	}

	@Override
	public String getLabel() {
		return "outer classes result";
	}

	@Override
	public ISearchQuery getQuery() {
		return this.query;
	}

	@Override
	public String getTooltip() {
		return "view outer classes";
	}

}
